<script setup>
const pageName = 'I am Dashboard'

let student = { id: 1, name: '小经', age: 99 }


const showInfo = () => {
    alert(JSON.stringify({ ...student, name: '李空', age: 66 }))
    console.dir(window)
//     window.less.modifyVars({
//         'primary-color': '#9ca51d',
//         'header-item-hover-color':'red',
//         'header-back-color':'red'
//     }).then(() => {
//         console.log('成功')
//     }).catch(() => {
//         console.log('错误')
//     })
}

</script>
<template>
  <div style="height: 800px;border: 1px solid #9ca51d;">
    {{ pageName }}
    <a-button type="primary" @click="showInfo">Hello HelloWorld</a-button>
  </div>
</template>